﻿using System;
using SqlSugar;

namespace WebApplication11.Models
{
    [SugarTable("user")]
    public class user {
        [SugarColumn(ColumnName = "username")]
        public String Username { get; set; }
            
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreUpdate = true, IsOnlyIgnoreInsert = true)]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "password")]
        public String Password { get; set; }
        
        [SugarColumn(ColumnName = "departmentId")]
        public int DepartmentId { get; set; }
    }
}